﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GreenPepperTest.Fixtures
{
    class MotionDetectorTestFixture
    {
        private HomeSecuritySystem sys;

        public bool CreateNewSecuritySystem()
        {
            sys = new HomeSecuritySystem();
            return true;
        }

        public int NumberOfMotionDetectorsInSecuritySystem()
        {
            return sys.GetNumberOfMotionDetectors();
        }

        public void AddNewMotionDetectorWithLocation(string loc)
        {
            MotionDetector mt = new MotionDetector(loc);
            sys.AddMotionDetector(mt);
        }

        public void CreateMovementAt(string loc)
        {
            sys.CreateMovementAt(loc);
        }

        public bool IsAlarmOnAt(string loc)
        {
            return sys.IsAlarmOn(loc);
        }

        public bool IsAlarmTrippedAt(string loc)
        {
            return sys.IsAlarmTrippedAt(loc);
        }

    }
}
